package com.huawei.crm.service;

import com.github.pagehelper.PageInfo;
import com.huawei.crm.domain.Role;
import com.huawei.crm.query.QueryObject;

import java.util.List;

public interface IRoleService extends BaseService<Role, Long> {

    void saveOrUpdate(Role r, Long[] permissionIds);

    void delete(Long id);

    Role get(Long id);

    List<Role> listAll();

    PageInfo<Role> query(QueryObject qo);
}
